package com.github.xaidanwang.auth.server.dao;

import com.github.xaidanwang.auth.server.entity.UserInfo;
import com.github.xaidanwang.mapper.BaseMapper;

public interface UserInfoMapper extends BaseMapper<UserInfo> {
	/**
	 * 根据  userNmae 查找用户账号信息
	 * @param userName  等于 账号
	 * @return
	 */
	UserInfo getUserInfoByUserName(String userName);

	/**
	 *  根据  phone 查找用户账号信息
	 * @param phone
	 * @return
	 */
	UserInfo getUserInfoByPhone(String phone);
}